/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package components;
import components.shape.Shape;
import components.shape.ShapeFocusHandler;
import components.shape.ShapeMouseAction;
import components.shape.ShapeMouseMotionAction;
import java.awt.Cursor;
import java.io.Serializable;
/**
 *
 * @author icdev
 */
public class HouseKeeping extends Shape implements Serializable{
    
   public HouseKeeping()
   {
       super();
        movable = true;
        this.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
        this.setComponentPopupMenu(getShapeMenu());
        this.setInheritsPopupMenu(true);

        ShapeMouseAction mouseaction = new ShapeMouseAction();
        this.addMouseListener(mouseaction);
        ShapeMouseMotionAction mousemotionaction = new ShapeMouseMotionAction();
        this.addMouseMotionListener(mousemotionaction);
        ShapeFocusHandler focusH = new ShapeFocusHandler();
        this.addFocusListener(focusH);
        this.setFocusable(true);
   }
}
